<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of spec</title>
  <meta name="keywords" content="spec">
  <meta name="description" content="Spectrogram estimate using the direct realisation">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
</head>
<body>
<a name="_top"></a>
<!-- menu.html hdocs -->
<h1>spec
&nbsp;&nbsp;<img src="../mex.png" alt="Linux PC" border="0" title="Linux PC"></h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>Spectrogram estimate using the direct realisation</strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Spectrogram estimate using the direct realisation

 Usage:

     tfd = spec (signal, time_res, window_length, window_type [, fft_length] 
            [, stft_or_spec ] )

 Parameters:

    signal

         Input one dimensional signal to be analysed. An analytic signal
         is required for this function, however, if signal is real, a
         default analytic transformer routine will be called from this
         function before computing spectrogram.

    time_res

         The number of time samples to skip between successive slices of
      the analysis.

    window_length

         Length of choosen window.


    window_type

         One of  'rect', 'hann', 'hamm', 'bart' 


    fft_length

         Zero-padding at the fft stage of the analysis may be specified by
         giving an fft_length larger than normal. If fft_length is not
         specified then the next highest power of two above the
         signal length will be used. If fft_length is not a power
         of two, then the next highest power of two is used.

    stft_or_spec

         Returns either Short Time Fourier Transform (STFT) or Spectrogram
         by specifying:
         
                  0           Spectrogram (default)
                  1           STFT


    tfd

        The computed time-frequency distribution. size(tfd) will
        return [a/2+1, b], where a is the next largest power of two above
        window_length, and b is floor(length(signal)/time_res) -
        1.



  See Also: <a href="analyt.html" class="code" title="">analyt</a></pre></div>

<!-- crossreference -->
<!-- removed -->
<!-- crossreference -->



<hr><address>Generated by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2016</address>
</body>
</html>